<?php
/*
*All rights reserved: Json.
*Links:http://www.liyaoquan.cn.
*Links:http://imarkchina.cn.
*Links:http://www.imarkchina.cn.
*/
$C = loadfile(C('config'));
//定义注意大小写，键必需大写(不是大写无法合并)，值随便你喜欢
return array(

//规则路由开启(需要配合"url重写"使用 默认关闭) true(开启) false(关闭)
	'URLROUTE' => true,

//默认模板文件夹
	'TPLFILE' => $C['style'],

	'CHECKCACHEING' => $C['cacheing'],

//路由规则
	'URLRULES'=> array(
		'/' => array('index', 'index', 'index'),
		'/lid/(.*+)' => array('index', 'list', 'index'),
		'/id/(.*+)' => array('index', 'show', 'index'),
		'/s' => array('index', 'search', 's'),
		'/s/(.*+)' => array('index', 'search', 's'),
		//博客前台URL规则结束

		'/pverify' => array('index', 'pinglun', 'verify'),
		'/pverify/(.*?)' => array('index', 'pinglun', 'verify'),
		'/add' => array('index', 'pinglun', 'add'),
		//博客前台评论URL规则结束

		'/rverify' => array('user', 'users', 'regverify'),
		'/rverify/(.*?)' => array('user', 'users', 'regverify'),
		'/lverify' => array('user', 'users', 'loginverify'),
		'/lverify/(.*?)' => array('user', 'users', 'loginverify'),
		//博客前台评论验证码URL规则结束

		'/reg' => array('user', 'users', 'reg'),
		'/login' => array('user', 'users', 'login'),
		'/pid/(\w+)' => array('user', 'users', 'logout'),
		'/uwrite' => array('user', 'users', 'writedata'),
		'/did/(.*?)' => array('user', 'users', 'del'),
		//博客前台用户登陆/注册/陆出/修改/删除评论URL规则结束

		'/rightp' => array('index', 'public', 'rightp'),
		//边栏Ajax取评论内容URL规则结束

		'/pget/(.*?)' => array('index', 'pinglun', 'pinglun'),
		'/ppget/(.*?)' => array('index', 'pinglun', 'ajaxp'),
		//Ajax取评论内容URL规则结束
		
		'/rss' => array('index', 'public', 'rss'),
		'/rss.xml' => array('index', 'public', 'rss'),
		//博客Rss

		'/hid/(.*?)' => array('index', 'public', 'hit'),
		'/getpid/(.*?)' => array('index', 'public', 'getpid'),
		//AJax取点击与评论数

		'/root' => array('root', 'index', 'index'),
		//后台登陆URL规则结束
	),
);